package org.example.threadlocal;

import java.time.LocalDateTime;
import java.util.Date;

/**
 * @author LanWP
 * @date 2024-08-02
 */
public class UserContextInfo {

    private String id;
    private String name;
    private Date createDate;
    private LocalDateTime localDateTime;
    public UserContextInfo(String id, String name, Date createDate, LocalDateTime localDateTime) {
        this.id = id;
        this.name = name;
        this.createDate = createDate;
        this.localDateTime = localDateTime;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public LocalDateTime getLocalDateTime() {
        return localDateTime;
    }

    public void setLocalDateTime(LocalDateTime localDateTime) {
        this.localDateTime = localDateTime;
    }

    @Override
    public String toString() {
        return "UserContextInfo{" +
                "id='" + id + '\'' +
                ", name='" + name + '\'' +
                ", createDate=" + createDate +
                ", localDateTime=" + localDateTime +
                '}';
    }
}
